<template>
    <div>
        <div class="main" v-for="(v,i) in this.$store.state.arr1" :key="i">
            <div class="item">
                <h2> <span :style="img"></span>{{v.title}}</h2>
                <p>{{v.pro}}</p> 
            </div>
            <div class="tit">
                <ul class="title">
                    <li v-for="(v,i) in v.arr1" :key="i">{{v.name}}</li>
                </ul>
            </div>
            <ul class="list">
                <li v-for="(v) in v.list" :key="v.id" @click="fun(v.id)">
                    <img :src="v.bigimg" alt="">
                    <br>
                    {{v.name}}
                </li>
            </ul>
            <div class="more">
                {{v.more}}
            </div>
        </div>
    </div>
</template>

<script>
export default {
    // props:["title","pro","more","arr1","arr2"],
    methods:{
        fun(id){
            this.$router.push({name:"Bei",query:{id}});
        }
    },
    data(){
        return {
            img:{backgroundImage: "url(" + require("sta/index.png") + ")"}
        }
    }
}
</script>

<style scoped>
    .main{
        padding: 0 .4rem;
    }
    h2{
        font-size: .46333rem;
        color: #111;
        line-height: 1em;
        padding-bottom: .14rem;
        font-weight: normal;
    }
    h2 span{
        display: inline-block;
        width: .48rem;
        height: .48rem;
        vertical-align: middle;
        margin: 0 0 .0433rem .16667rem;
        background: url(/img/index.png) no-repeat;
        background-size: 2rem;
        background-position: 0 -0.56rem;
        position: relative;
        left: 2.9rem;
        bottom: 0.025rem;
    }
    .item{
        text-align: center;
        border-bottom: 1px dotted #ddd;
        padding: .8rem 0 .66667rem;
    }
    .item p{
        font-size: .35rem;
        color: #999;
    }
    .tit{
        overflow: auto;
    }
    .tit .title{
        width: 22rem;
    }
    .tit .title li{
        float: left;
        line-height: 1em;
        font-size: .355rem;
        color: #696969;
        padding: .53333rem .53333rem .26667rem;
        position: relative;
    }
    .tit li:first-child::after{
        content: "";
        width: auto;
        height: 2px;
        display: block;
        background-color: #ff9d00;
        position: absolute;
        bottom: 0;
        left: .53333rem;
        right: .53333rem;
        left: 0;
    }
    .tit .title li:first-child{
        color: #ff9d00;
    }
    .list{
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: .53333rem 0 0;
    }
    .list li{
        width: 30%;
        text-align: center;
        font-size: .4rem;
        color: #111;
        margin-bottom: 0.266rem;
    }
    .list li img{
        width: 100%;
    }
    .more{
        width: 3.5rem;
        height: 1.12rem;
        line-height: 1.12rem;
        font-size: .37333rem;
        color: #ff9d00;
        border: 1px solid #ff9d00;
        border-radius: 3px;
        margin: auto;
        margin-top: 0.4rem;
        text-align: center;
    }
</style>